package controleur;

import java.awt.event.WindowAdapter;

import modele.CSV;
import vue.AddressBook;

public class Main {
	
	 public static void main(String[] args){
		 AddressBook book = new AddressBook();
		 book.addWindowListener(new WindowAdapter() {
			 @Override
			    public void windowClosing(java.awt.event.WindowEvent windowEvent) {
				 CSV.saveContacts();
			    }
		});
		 
	 }
	 
	
}
